package com.xjh.basestudy.designmode.createMode.createMode3_FactoryMethod.p3_factory;

import com.xjh.basestudy.designmode.createMode.createMode3_FactoryMethod.p1_original.Enemy;

/**
 * @author XuJianHua
 * @date 2022-09-22 16:08:14
 * @description
 */
public class BossFactory implements Factory {

    @Override
    public Enemy create(int screenWidth) {
        // 让Boss出现在屏幕中央
        return new Boss(screenWidth / 2, 0);
    }

}